import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../../../theme.dart';

class FakeDropdownButton extends StatelessWidget {
  const FakeDropdownButton({
    Key key,
    @required this.text,
    @required this.onPressed,
  }) : super(key: key);
  final String text;
  final Function onPressed;

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: onPressed,
      child: Container(
        padding: EdgeInsets.fromLTRB(
          8.w,
          4.w,
          0.w,
          4.w,
        ),
        decoration: BoxDecoration(
          color: Colors.white,
          border: Border.all(
            color: kLineColor,
          ),
          borderRadius: BorderRadius.circular(
            4.w,
          ),
        ),
        child: Row(
          children: [
            Expanded(
              child: Text(
                "$text",
              ),
            ),
            Icon(Icons.arrow_drop_down),
          ],
        ),
      ),
    );
  }
}
